    <div class="isi">
        <?php
        $atr = array('id' => 'formID',
            'class' => 'formular');
        echo form_open_multipart('admin_produk/simpan', $atr);
        ?> 
        <input type="hidden"  name="tmp_id" id="tmp_id"  value="<?php echo $tmp_id ?>"/>
        <table width="100%" >
            <tr>
                <td width="15%" ><p> Katagori Produk  </p> </td>
                <td><p> : </p> </td>
                <td> 
                    <select name="id_katagori" id="id_katagori" class="validate[required] text-input" > 
                        <option value="">Pilih Katagori : </option>
                        <?php
                        foreach ($list_katagori as $dta) {
							if($dta->parentid == 0){
								echo "<option value='$dta->id'> $dta->nama_katagori **(Parent)</option>";
							} else {
								echo "<option value='$dta->id'> $dta->nama_katagori</option>";
							}
                            
                        }
                        ?>
                    </select>
            </tr>
            <tr>
                <td width="15%" ><p> ID Produk </p> </td>
                <td><p> : </p> </td>
                <td> <input type="text" size="7" name="id" id="id" class="validate[required,maxSize[5],minSize[5],custom[integer]] text-input" />
                <?php 
                    echo "<em style='color:red;'> $error </em>";
                ?>
                </td>
            </tr>
            <tr>
                <td width="15%"><p> Nama Produk  </p> </td>
                <td><p> : </p> </td>
                <td> <input type="text" name="nama_produk" id="nama_produk" size="50" class="validate[required] text-input" /> </td>
            </tr>            
            <tr>
                <td width="15%"><p> Warna  </p> </td>
                <td><p> : </p> </td>
                <td> <input type="text" name="warna" id="warna" size="30" class="validate[required] text-input"/> </td>
            </tr>   
            <tr>
                <td width="15%"><p> Harga </p> </td>
                <td><p> : </p> </td>
                <td> <input type="text" name="harga" id="harga" size="20" class="validate[required,custom[integer]]"/> </td>
            </tr>      
            <tr>
                <td width="15%"><p> Disk (%) </p> </td>
                <td><p> : </p> </td>
                <td> <input type="text" name="disk" id="disk" size="5" class="validate[custom[integer]]"/> </td>
            </tr>               

            <tr>
                <td width="15%" style="vertical-align: top;"><p> Keterangan  </p> </td>
                <td  style="vertical-align: top;"><p> : </p> </td>
                <td> <textarea rows="4" cols="45" name="keterangan"  id="my_editor"   class="validate[required] text-input"></textarea></td>
            </tr>    
            <tr>
                <td width="15%"><p> Image 1  </p> </td>
                <td><p> : </p> </td>
                <td> <input type="file" name="image1" id="image1" class="validate[required] text-input"/> </td>
            </tr> 
            <tr>
                <td width="15%"><p> Image 2  </p> </td>
                <td><p> : </p> </td>
                <td> <input type="file" name="image2" id="image2" /> </td>
            </tr>   
            <tr>
                <td width="15%"><p> Image 3  </p> </td>
                <td><p> : </p> </td>
                <td> <input type="file" name="image3" id="image3" /> </td>
            </tr> 
            <tr>
                <td width="15%"><p> Status </p> </td>
                <td><p> : </p> </td>
                <td> 
                    <select style="width: 105px" name="status" id="status">
                    <option value='1' selected>Aktif</option>
                    <option value='0'>Pasif</option>

                    </select>
                </td>
            </tr>
        </table>
        <br/>
        <?php echo anchor("admin_produk", "Kembali", "class='button' style='color:#f8f8f8'"); ?>
        <input type="submit" value="         Simpan       " class="button"/>
    </form>
    <div class="clear"></div>
    </div>